Page({
  data: {
    orderFormList: [],
  },

  onLoad() {
    this.setData({
      orderFormList: [
        {
          productImage: '',
          productNo: '41001',
          productName: '梭织短袖衬衣',
          quantity: 150,
        },
        {
          productImage: '',
          productNo: '41002',
          productName: '短袖T恤',
          quantity: 140,
        },
        {
          productImage: '',
          productNo: '41025',
          productName: '短袖T恤',
          quantity: 30,
        },
        {
          productImage: '',
          productNo: '41056',
          productName: '短袖T恤',
          quantity: 100,
        },
      ],
    });
  },

  handleClick() {
    wx.scanCode({
      success(res) {
        wx.navigateTo({
          url: `/pages/ordering-conference/edit/index?product_no=${res.result}`,
        });
      },
    });
  },
});
